
import main from '@/pages/index/index'
export const routers = [
    {
        path: '/',
        component: main,
        meta: {
            title: '首页',
            icon: 'uc-menu-icon-index',
        },
        children: [{
            path: '/',
            name: 'home',
            meta: {
                title: '首页',
            },
            component: resolve => {
                require(['@/pages/home/home.vue'], resolve);
            }
        }, {
            path: '/my',
            name: 'my',
            meta: {
                title: '我的',
            },
            component: resolve => {
                require(['@/pages/my/my.vue'], resolve);
            }
        }]
    },
];

export default [
    ...routers
]